package com.paradogs.framework.common.entity;

import com.baidu.bjf.remoting.protobuf.annotation.ProtobufClass;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.paradogs.framework.common.entity.base.BaseEntity;
import java.util.Map;

import lombok.*;

/**
 * <p>
 * 
 * </p>
 *
 * @author yumi
 * @since 2023-11-30
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("g_role")
@ProtobufClass
public class Role extends BaseEntity {

    /**
     * 等级
     */
    @TableField("level")
    private Long level = 0L;

    /**
     * 经验值
     */
    @TableField("exp")
    private Long exp = 0L;

    /**
     * 持有道具 map[道具 ID] = 数量
     */
    @TableField("bag")
    private  Map<Integer, Integer> bag;

}
